[AI] What to change: The dropdown menu, where one can pick user category. - #203
Open
burkongla wants to merge 1 commit into
Open
[AI] What to change: The dropdown menu, where one can pick user category.#203burkongla wants to merge 1 commit into
burkongla wants to merge 1 commit into
Conversation
…gory. Task: 9f36b8f9 Source: slack Requested by: U04E9DZ5ELF
✅ Deploy Preview for githelp-support ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated PR
Task: What to change: The dropdown menu, where one can pick user category.
Description: What to change: The dropdown menu, where one can pick user category.
• When a new user register itself, only the user category that the person registered for, should be shown in the dropdown menu. If a user is registered for multiple user categories, all relevant user categories should be shown. If a helper receives an invite to join a project as a helper, and is not registered for Githelp prior, only the category “Helper” should be visible in the dropdown menu, when the person has completed his/hers registration. This goes for all user groups.
Do not change: Anything else than what is listed.
Acceptance criteria: When all points listed under “Description and specific values” are implemented the task is done.
Source: slack
Requested by: U04E9DZ5ELF
Classification: flow
Changes
The role dropdown in the top bar currently offers roles hierarchically (admin implies helper+user, helper implies user). Change it to list only the categories the signed-in profile is actually registered for (admin membership, helper registration, support/member user), so e.g. an invited helper sees only "Helper" and a project creator sees only "Admin".
Security Review
Status: warn
No high-severity issues: no secrets, injection, XSS, or CORS changes, and all Supabase queries are parameterized builder calls governed by RLS. Two low advisories: unscoped 'user-roles' cache key could leak the previous account's role set across sign-ins, and role state remains client-trusted (pre-existing).
Warnings:
🤖 Generated by githelp-support agent team